@csrf
<div class="layui-form-item">
    <label for="name" class="layui-form-label">名称</label>
    <div class="layui-input-block">
        <input type="text" name="name" class="layui-input" value="{{$award->name??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="level" class="layui-form-label">等级</label>
    <div class="layui-input-block">
        <select name="level" placeholder="请选择荣誉级别">
            <option value=null></option>
            @foreach($levels as $level)
            @if($award->level==$level['id'])
            <option value="{{$level['id']}}" selected>{{$level['title']}}</option>
            @else
            <option value="{{$level['id']}}">{{$level['title']}}</option>
            @endif
            @endforeach
        </select>
    </div>
</div>
<div class="layui-form-item">
    <label for="sort_code" class="layui-form-label">排序</label>
    <div class="layui-input-block">
        <input type="text" name="sort_code" class="layui-input" value="{{$award->sort_code??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="status" class="layui-form-label"></label>
    <div class="layui-input-block">
        <input type="checkbox" name="status" title="有效" class="layui-input" value="1"
            {{$award->status=='1'?'checked':''}}>
    </div>
</div>
<div class="layui-form-item">
    <label for="description" class="layui-form-label">备注</label>
    <div class="layui-input-block">
        <textarea name="description" class="layui-textarea">
            {{$award->discription??''}}
        </textarea>
    </div>
</div>
